﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserManager.aspx.cs" Inherits="UserManager"
    ValidateRequest="false" %>

<%@ Register TagPrefix="esshs" Namespace="Titan.WebForm" Assembly="WebCalendar" %>
<%@ Register TagPrefix="UserControl" Src="~/UserControl/ComQueryControls.ascx" TagName="QueryControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>数据显示</title>
    
    <link href="~/CSS/css.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="~/js/JS_common.js"></script>

    <script language="javascript" type="text/javascript" src="~/js/JS_Layer.js" charset="gb2312"></script>

    <script language="javascript" type="text/javascript" src="~/js/GeneralPage.js"></script>
    <script language="javascript" type="text/javascript" src="~/js/JS_Print.js"></script>
    <script language="javascript" type="text/javascript" src="~/js/My97DatePicker/WdatePicker.js"></script>

    <script language="javascript" type="text/javascript">
        function setfocus() {
            var btnQry = document.getElementById('btnQueryNormal');
            if(btnQry == null)
                btnQry = document.getElementById('btnQueryCustom');
            if(btnQry == null)
                return;
            btnQry.focus();
        }
    
        function checkValue()
        {
            if(document.all("MailInfoUrgent$txbSubject").value== "" )
            {
                alert("请输入标题!");
                document.all("MailInfoUrgent$txbSubject").focus();
                return false;
            }
            if(document.all("MailInfoUrgent$txbSendTo").value== "" )
            {
                alert("请输入收件人!");
                document.all("MailInfoUrgent$txbSendTo").focus();
                return false;
            }
            if(document.all("MailInfoUrgent$txbBody").value== "" )
            {
                alert("请输入内容!  ");
                document.all("MailInfoUrgent$txbBody").focus();
                return false;
            }
            return true;
        }

        function showabSoluteDiv(){
            var oSource = document.getElementById("abSoluteDiv");
            oSource.style.display="block";
            oSource.style.posTop=150;
            oSource.style.posLeft=150; 
        }     
               
        function closeabSoluteDiv(){
            var oSource = document.getElementById("abSoluteDiv");
            oSource.style.display="none";
        }    
        
        function Print(preview) {           
            var text = document.getElementById("form1").innerHTML;
            printConten(preview, text);           
           //printPage(preview);
        }
        
        function LinkComUserDetail( str )
        {
            window.location.href="UserManagerDetails.aspx?tablecode="+str;
        }
         
    </script>

</head>
<%--<body topmargin="0" leftmargin="0" onload="setfocus(),drowpoint()"> --%>
<body topmargin="0" leftmargin="0" onload="setfocus()"> 
    <form id="form1" runat="server">
        <div id="MainContentCommon">       
            <div class="tit" id="mcTitle" runat="server" style="display: none" title="testss" visible="false">
                &gt;&gt;&gt;
                <asp:Label ID="lblTabName" runat="server" Visible="False"></asp:Label>
            </div>                  
                <table cellpadding="0" cellspacing="0" style="background-color: lightsteelblue; width: 100%; height: 24px;">
                    <tr>
                        <td>
                            <%--/*第一个控件btnDefaultSearch唯一的功能是聚焦focus用的，界面上看不见，但实际是可见的，
                            但是又不是Visible="false"(也就是隐藏后，就不能把focus聚在这个控件上了)
                            btnQuery_ServerClick处理函数就是那个查询按钮的处理函数
                            这样的结果就是，在输入查询条件的时候，可以直接按回车，运行的是第一个按钮，即调用查询，否则其他办法需要
                            鼠标点击其他空的地方，才能聚焦到查询按钮*/--%>
                            <asp:Button ID="btnDefaultSearch" runat="server" CssClass="nobuttonface" Text=""
                                OnClick="btnQuery_ServerClick" />                           
                            <asp:Button ID="BtnCustomSearch" runat="server" CssClass="flatbuttonface iconCustSearch" Text="复杂查询"
                                OnClick="BtnCustomSearch_Click" Visible="false"/>
                            <asp:Button ID="BtnNew" runat="server" CausesValidation="False" CssClass="flatbuttonface iconNew"
                                Text="新建" OnClick="BtnNewClick" EnableViewState="false" Visible="false" />
                            <asp:Button ID="BtnImport" runat="server" CausesValidation="False" CssClass="flatbuttonface iconImport"
                                Text="导入" OnClick="BtnImportClick" EnableViewState="false" Visible="false" />
                            <asp:Button ID="BtnExport" runat="server" CausesValidation="False" CssClass="flatbuttonface iconPrint"
                                Text="打印/导出 " UseSubmitBehavior="False" OnClick="Btn_Export" EnableViewState="false" Visible="false" />
                            <%--普通查询的"清空查询条件"--%>
                            <input id="BtnClear_S" runat="server" type="button" value="清空查询条件" class="flatbuttonface iconClear" onclick="ClearData();" visible="true" />
                            <%--自定义查询的"清空查询条件"--%>
                            <asp:Button ID="BtnClear_CS" runat="server" CssClass="flatbuttonface iconClear" Text="清空查询条件" OnClick="BtnClear_Click"
                                Visible="False" />                           
                           <%-- <asp:Button ID="BtnRemark" runat="server" CssClass="flatbuttonface iconComment" Text="表备忘" OnClick="BtnRemark_Click"
                                EnableViewState="false" />--%>
                                <input id="mschart" runat="server" type="button" class="flatbuttonface iconChart" value="统计图" onclick="location.href='MsChart.aspx'" visible="false" />
                                <%--<input id="BtnPrint" runat="server" type="button" value="打印" class="flatbuttonface iconPrint" onclick="Print(true);" visible="false" />--%>
                                <%--<asp:Button ID="BtnPrint" runat="server" CausesValidation="False" CssClass="flatbuttonface iconPrint" Text="打 印" 
                                UseSubmitBehavior="False" EnableViewState="false" onclick="Print();" />   --%>                              
                            <asp:Button ID="DelButton" CausesValidation="False" runat="server" Text="选中删除" OnClick="DelButtonClick"
                                EnableViewState="false" OnClientClick="return checkDel();" CssClass="flatbuttonface iconDel"
                                Visible="false" />
                        </td>
                    </tr>
                </table>              
            <div class="con">
                <div id="QueryDiv">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <table>
                                    <tbody id="tbQueryCls" runat="server" align="center">
                                    </tbody>
                                </table>
                            </td>
                            <td align="center" style="padding-left: 20px">
                                <asp:Button ID="btnQueryNormal" runat="server" Text="查 询" Width="91px" CssClass="flatbuttonface iconBtnComSearch"
                                    OnClick="btnQuery_ServerClick" OnClientClick="return CheckQueryData();" />
                            </td>
                        </tr>
                    </table>
                    
                    <table id="tbCustom" runat="server" visible="false" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 149px; height: 18px">
                                列名：
                            </td>
                            <td style="width: 100px; height: 18px">
                                条件：
                            </td>
                            <td style="width: 54px; height: 18px">
                            </td>
                            <td style="width: 107px; height: 18px">
                                已添加条件：</td>
                        </tr>
                        <tr>
                            <td style="width: 149px">
                                <asp:ListBox ID="lbCustomColCode" runat="server" Height="159px" Width="188px"></asp:ListBox></td>
                            <td style="width: 100px">
                                <asp:ListBox ID="lbCustomOpr" runat="server" Height="159px" Width="117px" EnableViewState="false" OnSelectedIndexChanged="lbCustomOpr_SelectedIndexChanged">
                                    <asp:ListItem Value="=" Text="等于"></asp:ListItem>
                                    <asp:ListItem Value=">" Text="大于"></asp:ListItem>
                                    <asp:ListItem Value="<" Text="小于"></asp:ListItem>                                   
                                    <asp:ListItem Value=">" Text="大于等于"></asp:ListItem>
                                    <asp:ListItem Value="<" Text="小于等于"></asp:ListItem>                                    
                                    <asp:ListItem Value="like" Text="模糊匹配"></asp:ListItem>
                                </asp:ListBox></td>
                            <td style="width: 120px; margin-top:5px" align="center">
                                <input type="radio" value="and" name="radioWhere" checked />并且
                                <br />
                                <input type="radio" value="or"  name="radioWhere"/>或者
                                <br />
                                <img onclick="WdatePicker({el:'TBInptValue'})" src="../js/My97DatePicker/skin/datePicker.gif"
                                    width="16" height="22" align="absmiddle" title="输入时间">
                                <br />
                                输入值：
                                <br />
                                <asp:TextBox ID="TBInptValue" runat="server" Height="19px" Width="86px"></asp:TextBox>
                                <asp:Button ID="BtnCustomAdd" runat="server" Text="添 加" Width="91px" CssClass="buttonface iconAdd"
                                    Height="21px" OnClick="BtnCustomAdd_Click" EnableViewState="false" />
                                <asp:Button ID="btnQueryCustom" runat="server" Visible="false" Text="查 询" Width="91px"
                                    CssClass="buttonface iconSearch" OnClick="BtnCustomSearchOpr_Click" />
                                <asp:HiddenField ID="hidCustomWhere" runat="server" />
                            </td>
                            <td style="width: 377px;height:159px; border:solid 1px gray; vertical-align:top">
                                <%--<asp:Label ID="tbCustomSel" runat="server" Height="159px" BorderColor="gray" BorderStyle="solid" BorderWidth="1" Width="377px" Text="" CssClass="condition"></asp:Label>--%>&nbsp;
                                <asp:Literal Text="" runat="server" ID="tbCustomSel"></asp:Literal>
                                
                             </td>
                        </tr>
                    </table>
                </div>

                <div id="ApprovalDataDiv" runat="server" style="font-weight: bold; color: red;" visible="false"
                    class="con" enableviewstate="true">
                </div>
                <table class="CommonPage_table" cellspacing="0" cellpadding="0">
                    <tbody id="tab_content" runat="server" align="center" enableviewstate="false">
                    </tbody>
                    <%-- <tbody id="subtab_content" runat="server" align="center" enableviewstate="false">
                    </tbody>--%>
                </table>
            </div>
            <table class="CommonPage_Pagetable" align="center" border="0">
                <tbody id="ToVis" runat="server">
                    <tr>
                        <td align="left" class="font4" style="height: 18px">
                            第<asp:Label ID="lblCpi" runat="server" Text="1"></asp:Label>页&nbsp; 共<asp:Label ID="lblallPage"
                                runat="server" Text="1"></asp:Label>页&nbsp; 每页<asp:TextBox ID="txtRowinOnePage" runat="server"
                                    Width="20px" OnTextChanged="txtRowinOnePage_TextChanged" AutoPostBack="true"
                                    Text="20"></asp:TextBox>条&nbsp; 共<asp:Label ID="lblAllRow" runat="server" Text="0"></asp:Label>条
                        </td>
                        <td align="right" style="height: 18px">
                            <asp:Label ID="Label1" runat="server" Text="跳到第"></asp:Label>
                            <asp:TextBox ID="JumpPage" runat="server" AutoPostBack="True" OnTextChanged="JumpPageTextChanged"
                                Width="47px"></asp:TextBox>&nbsp; 页
                            <asp:LinkButton ID="LbtFirstPage" runat="server" OnClick="FirstPageClick">首页</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="LbtPreviousPage" runat="server" OnClick="PreviousPageClick">上一页</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="LbtNextPage" runat="server" OnClick="NextPageClick">下一页</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="LbtLastPage" runat="server" OnClick="LastPageClick">尾页</asp:LinkButton>&nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div>
            <asp:Button ID="SearchButton" Style="display: none" runat="server" Text="查询" OnClick="SearchButtonClick" />
            <asp:Button ID="BtnOpenDiag" Style="display: none" runat="server" Text="Button" />
            <asp:Button ID="SortButton" Style="display: none" runat="server" Text="排序" OnClick="SortButtonClick" />
            <asp:TextBox ID="txtQueryCls" Style="display: none" runat="server"></asp:TextBox>
            <asp:HiddenField ID="txtQueryData" runat="server" />
            <input type="hidden" id="hidDelIds" name="hidDelIds" value="" />
            <asp:HiddenField ID="Txt_mysql" runat="server" Value="" />
            <asp:HiddenField ID="SortTxt" runat="server" Value="" />
        </div>
        <div id="abSoluteDiv" class="abSolute" style="display: none; width: 500px; height: 500px;">
            <table border="0" cellpadding="2" width="98%" class="small" cellspacing="1" bgcolor="#6896B5"
                align="center">
               <%-- <tr>
                    <td>
                        <uc:MailInfo runat="server" ID="MailInfoUrgent" IDValue="MailInfoUrgent" />
                    </td>
                </tr>--%>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button ID="TB_SendEmail" runat="server" Text="发送" OnClick="TB_SendEmail_Click"
                            CssClass="buttonface" OnClientClick=" return checkValue();" />
                        <asp:Button ID="BT_Return" runat="server" Text="取消" CssClass="buttonface" OnClientClick="closeabSoluteDiv();return false;" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
